package pos.domain;

import pos.data.*;
import java.util.*;
import pos.domain.*;


public class UserManager implements IUserManager{
	
	private IUserDAO udao=new JDBCUserDAO();
	
	
	
	//
	
	public List<User> getUsers(){
		return udao.selectAllUsers();
	}
	
	public User getUser(String email){
		return udao.selectUser(email);
	}
	
	
    public List<Property> getMyPropertys(String email){
    	return (new JDBCPropertyDAO().selectProperyts(email));
	}
   
    
    public void altaCompleta(User u,Property p,Service s)
    {
    	udao.insertUser(u,p,s);
    }
    
}

